package com.weayer.remote;

import com.weayer.dto.ResponseResult;
import com.weayer.response.SearchTerminalResponse;
import com.weayer.response.TrsearchResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @description: Service服务 - 订单 - service-map远程调用
 * @author: Weayer
 **/
@FeignClient("service-map")
public interface ServiceMapClient {

    @RequestMapping(method = RequestMethod.POST, value = "/terminal/search")
    public ResponseResult<List<SearchTerminalResponse>> search(@RequestParam String center,@RequestParam int radius);

    @RequestMapping(method = RequestMethod.POST, value = "/terminal/trsearch")
    public ResponseResult<TrsearchResponse> trsearch(@RequestParam String tid, @RequestParam Long starttime, @RequestParam Long endtime);
}
